deleting an object in python

36

>>> class Test:
...     def __del__(self):
...         print "deleted"
... 
>>> test = Test()
>>> del test
deleted

Comments

Submit
0 Comments